# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=py3-discogs-client
_pyname=python3-discogs-client
pkgver=2.3.2
pkgrel=0
pkgdesc="Joalla Python Discogs API Client"
url="https://github.com/joalla/discogs_client"
arch="noarch"
license="BSD-2-Clause"
depends="py3-oauthlib py3-requests py3-six"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/python3-discogs-client/python3-discogs-client-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-discogs-client" # for backwards compatibility
provides="py-discogs-client=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="69168afe10f03b39ba0b459a04bf34cc033720bffd9074910d2e66425ab5dab2caa4c0013b0fafd0a5629ee871cd3122ad3601a9f3daef7286674ec805ffcd87  python3-discogs-client-2.3.2.tar.gz"
